<?php

class Producto extends AppBase {
	//public $useConnection = false;
	//public $useTable = "contratos";
	
	public function getTest() {
		
		$conds = array('fields' => "*"
					  ,'where'  => array('grup_id = 1')
					  ,'group'  => ''
					  ,'having' => ''
					  ,'order'  => ''
					  ,'limit'  => '');
		
		$info = $this->Producto->find('all', $conds);
		//$info = $this->Producto->getAll($conds);
		//$info = array();
		
		//$info = $this->Producto->execute("insert into productos values (1)");
		//$info = $this->Producto->query("select * from productos");
		return $info;
	}
}

?>